package com.cndw.kungfu.domain;

import com.cndw.kungfu.ext.StringProcesser;

public class LotteryMode {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 抽奖类型
	 */
	private int type;
	/**
	 * 奖品等级
	 */
	private int level;
	/**
	 * 奖品几率
	 */
	private int rate;
	/**
	 * 额外数
	 */
	private int m;
	/**
	 * 物品id
	 */
	private int goodsId;
	/**
	 * 随机物品的id
	 */
	private String rateIds;

	/**
	 * 数量
	 */
	private int num;
	/**
	 * 是否隐藏
	 */
	private boolean hidden;

	private int levelMin;

	private int levelMax;

	private int[] rateGoodsIds;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public int getM() {
		return m;
	}

	public void setM(int m) {
		this.m = m;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public String getRateIds() {
		return rateIds;
	}

	public void setRateIds(String rateIds) {
		this.rateIds = rateIds;

		if (rateIds != null && rateIds.length() >= 1) {
			rateGoodsIds = StringProcesser.toIntArray(rateIds);
		}
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public int getLevelMin() {
		return levelMin;
	}

	public void setLevelMin(int levelMin) {
		this.levelMin = levelMin;
	}

	public int getLevelMax() {
		return levelMax;
	}

	public void setLevelMax(int levelMax) {
		this.levelMax = levelMax;
	}

	public int[] getRateGoodsIds() {
		return rateGoodsIds;
	}

}
